
package com.fire.eyes.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import cn.afterturn.easypoi.excel.annotation.Excel;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import java.io.Serializable;
import java.util.Date;

/**
 * 微信用户
 *
 * @author Matthew
 * @Date 2019-01-17 20:18
 */
@TableName("t_mit_user_wx")
public class UserWxModel extends Model<UserWxModel> {

    private static final long serialVersionUID = 1L;


    /**
     * 微信openid
     * 
     */
    @TableField(value="openid")
    @Excel(name = "微信openid")
    private String openid;
    /**
     * 用户id
     * 
     */
    @TableField(value="userid")
    @Excel(name = "用户id")
    private Integer userid;
    /**
     * 微信token
     * 
     */
    @TableField(value="wxtoken")
    @Excel(name = "微信token")
    private String wxtoken;
    /**
     * 失效时间
     * 
     */
    @TableField(value="expiretime")
    @Excel(name = "失效时间")
    private Date expiretime;
    /**
     * 微信刷新token
     * 
     */
    @TableField(value="refreshtoken")
    @Excel(name = "微信刷新token")
    private String refreshtoken;
    /**
     * 获取: 微信openid
     * 
     */
    public String getOpenid() {
        return openid;
    }
    /**
     * 设置: 微信openid
     * 
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }
    /**
     * 获取: 用户id
     * 
     */
    public Integer getUserid() {
        return userid;
    }
    /**
     * 设置: 用户id
     * 
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }
    /**
     * 获取: 微信token
     * 
     */
    public String getWxtoken() {
        return wxtoken;
    }
    /**
     * 设置: 微信token
     * 
     */
    public void setWxtoken(String wxtoken) {
        this.wxtoken = wxtoken;
    }
    /**
     * 获取: 失效时间
     * 
     */
    public Date getExpiretime() {
        return expiretime;
    }
    /**
     * 设置: 失效时间
     * 
     */
    public void setExpiretime(Date expiretime) {
        this.expiretime = expiretime;
    }
    /**
     * 获取: 微信刷新token
     * 
     */
    public String getRefreshtoken() {
        return refreshtoken;
    }
    /**
     * 设置: 微信刷新token
     * 
     */
    public void setRefreshtoken(String refreshtoken) {
        this.refreshtoken = refreshtoken;
    }

    @Override
    protected Serializable pkVal() {
        return this.openid;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
